begintownscript;

variables;
 
 short choice;
 body;
 
beginstate INIT_STATE;
 
turn_off_training(1);
  break;
 
beginstate EXIT_STATE;
 break;
 
beginstate START_STATE;
 break;
 
beginstate 10;
 reset_dialog();
 
add_dialog_str(0,"There is a trapdoor here. Would you like to go down it?",0);
 
add_dialog_choice(0,"No.");
 
add_dialog_choice(1,"Go down.");
 
if (run_dialog(1) == 2)
 { 
move_to_new_town(6,37,22);
 } else
 block_entry(1);
 break;
 
beginstate 11;
 if (get_flag(0,16) == 0) { message_dialog("The runes keep you from accessing the portal.","");
 block_entry(1);
 } break;
 
beginstate 12;
 message_dialog("The wheel with chain is apparently only useable when a certain object is used.","You don't have that object.");
 break;
 
beginstate 13;
 if (get_flag(0,18) == 3){ message_dialog("A note seems to have been left for you here.","");
 message_dialog("_You may have beaten me for now, but we will still get you._","_I will give you a reason to go the the mine north of here._");
 message_dialog("_There is a portal in there, covered by a very weak wall._","_Hopefully they will eat you there. If not, you don't want to leave this place. Won't you want to beat us?_");
 set_flag(0,18,4);
 } break;
 